local SkillMove = require("gameLogic.fightSkill.show.SkillMove")
local SkillMoveCenter = class("SkillMoveCenter", SkillMove)
local AnimConst = require("const.AnimConst")
local GameUtils = require("utils.GameUtils")
local cs_coroutine = require("utils.cs_corutine")
local FightHelper = require("gameLogic.fight.FightHelper")
-- 移动到战场中心释放技能

local DISTANCE = 16

function SkillMoveCenter:ctor(config)
    SkillMoveCenter.super.ctor(self, config)
end

function SkillMoveCenter:_getEnemyEntityCenterPosition()
    local manager = self._entity:getManager()
    local targetTransform = manager:getEnemyEntityPointTransform(self._entity:getStanding())
    local targetPos = targetTransform.position
    local targetPosition = targetPos + targetTransform.forward * DISTANCE
    return targetPosition
end

return SkillMoveCenter
